#ifndef MESSAGE_PARSING
#define MESSAGE_PARSING

#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>

#include "debug.h"

#include "hashtable.h"
#include "list.h"
#include "file.h"
#include "criterion.h"
#include "tracker.h"

char* announce_getListenPort(char* string);
char* announce_getSeedList(char* string);
char* announce_getLeechList(char* string);

char* look_getCriterionList(char* string);

char* getfile_getKey(char* string);

char* update_getSeedList(char* string);
char* update_getLeechList(char* string);

hashtable* announce_parseSeedList(char* string);
list* announce_parseLeechList(char* string);

list* update_parseLeechSeedList(char* seeders, char* leechers);

criterion* parseCriterion(char* string);
list* parseCriterionList(char* string);

char* fileListToString(list* l);
char* peerListToString(list* l);

#endif // MESSAGE_PARSING
